class Notifier < ActionMailer::Base  # Michael
  default :from => "Visige Automated Email System <mgmvisige@gmail.com>"

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.notifier.account_creation.subject
  #
  def account_creation(recipient) #Michael
	@recipient = recipient
	@url = "130.217.220.186"

    mail :to => recipient.email, :subject => "Visige Account Creation"
  end

  # Subject can be set in your I18n file at config/locales/en.yml
  # with the following lookup:
  #
  #   en.notifier.event_notification.subject
  #
  def event_notification(recipient, event_message) #Michael
	@recipient = recipient
	@url = "130.217.220.186"
	@message = event_message

    mail :to => recipient.email, :subject => "Visige Event Notification"
  end
  
  def feedback(sender, subject, content) #Michael
	@sender = Entity.find(sender)
	@subject = subject
	@feedback = content

    mail :to => "mgmvisige@gmail.com", :subject => @subject
  end
end
